package com.example.everying.model.dto.user;/*
 * 项目名称: everything
 * 文件名: UserEditDto
 * 作者: 张泽阳
 * 日期: 2025/5/21
 * 描述:
 */

import jakarta.validation.constraints.Pattern;
import lombok.Builder;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.Size;
import java.util.List;

@Data
public class UserEditDto {

    private String id;

    private String userName;

    @Size(min = 11, max = 11, message = "手机号长度必须为11位")
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式不正确")
    private String phone;

    private String birthday;

    private String gender;

    private String password;

    private Double creditValue;

    private Integer isAdministrator;

    private List<String> labels;

    private String personalIntroduction;

    private String avatarUrl;

    private Integer isDelete;


}
